package exception;

public class FinallyDemo {
    public static void main(String[] args) {
        try{
            String str = "null";
            System.out.println(str.length());
            System.out.println(str.charAt(5));
            return;
        }catch (Exception e){
            System.out.println("出现了异常");
        }finally {
            System.out.println("程序执行结束！");
        }
    }
}
